﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using  AppAcc.Models;
using AppAcc.Views.BaoCaoChungTu;

namespace AppAcc.FormDieuKien
{
    public partial class FormDieuKienSoQuyTienMat : Form
    {
        private PhanMenKeToanEntities1 db = new PhanMenKeToanEntities1();
        private int idtam = 0;
        public FormDieuKienSoQuyTienMat()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Views.BaoCaoChungTu.FormBaoCaoSoQuyTienMat f = new Views.BaoCaoChungTu.FormBaoCaoSoQuyTienMat(cbbX_TaiKhoan.SelectedValue.ToString(),dateTimePicker1.Value,dateTimePicker2.Value);
            f.ShowDialog();
        }

        private void FormDieuKienSoQuyTienMat_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dS_GetListSoQuyTienMat.pr_GetListSoQuyTienMat' table. You can move, or remove it, as needed.
            this.pr_GetListSoQuyTienMatTableAdapter.Fill(this.dS_GetListSoQuyTienMat.pr_GetListSoQuyTienMat);
            cbbX_TaiKhoan.DisplayMember = "TenTaiKhoan";
            cbbX_TaiKhoan.ValueMember = "Id";
            cbbX_TaiKhoan.DropDownColumns = "Id,TenTaiKhoan";
            cbbX_TaiKhoan.DropDownColumnsHeaders = "Mã TK\r\nTên TK\r\n";
            //getListTK();
        }

        void getListTK()
        {
            //cbbX_TaiKhoan.DataSource = db.TaiKhoans.ToList();
            //cbbX_TaiKhoan.DisplayMember = "TenTaiKhoan";
            //cbbX_TaiKhoan.ValueMember = "Id";
            //cbbX_TaiKhoan.DropDownColumns = "Id,TenTaiKhoan";
            //cbbX_TaiKhoan.DropDownColumnsHeaders = "Mã TK\r\nTên TK\r\n";
        }
    }
}
